package com.cqjtu.drive.mapper;

import com.cqjtu.drive.pojo.Enroll;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EnrollMapper {

    Enroll getEnrollById(String enId);

    void insertEnroll(Enroll enroll);

    void updateEnroll(Enroll enroll);

    void deleteEnroll(String enId);

    List<Enroll> getAllEnrolls();

    List<Enroll> getAllEnrollsWithAccept0();
    List<Enroll> getAllEnrollsWaitRecord();
    void updateEnrollAccept(String enId,String newAccept);
    List<Enroll> getAllEnrollsBySId(String sId);

}
